#include "../src/reactor.hpp"

int main()
{
    bit_net::Socket sock;
    sock.create_client("127.0.0.1", 8500);
    
    std::string req = "GET / HTTP/1.1\r\nConnection: keep-alive\r\nContent-Length: 0\r\n\r\n";
    req += "Content-Length: 1024\r\n";
    req += "\r\n";
    req += "name=zhangsan&age=19";

    sock.send(req.c_str(), req.size());
    char buf[1024] = {0};
    sock.recv(buf, 1023);
    DBG_LOG("%s", buf);
    while(1) sleep(10);
    return 0;
}
